package app;

import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;


import log.Log;
import log.Statistics;
import shared.Friend;
import shared.PersonList;
import visualization.CreateGraph;
import visualization.GraphRender;
import crawler.Crawler;
import database.DatabaseGetters;
import database.FromFileToDatabase;
import database.DatabaseClient;
import form.SelectedItems;
import form.WindowForm;



public class Start 
{
	public static void main(String[] args) 
	{	
		CreateGraph graf = CreateGraph.get();			
		PersonList<Friend> friendsList = new PersonList<Friend>();
		friendsList.addAll(new ArrayList<Friend>(DatabaseGetters.getAllFriends()));
		graf.setData(friendsList, null);		
		graf.generateGraphFile();		
		try 
		{
			WindowForm windowForm = new WindowForm();
			windowForm.frame.setVisible(true);			
		} 
		catch (Exception e)
		{
			e.printStackTrace();
		}	
	}
}
